﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace Infancy.Core.Plugin.Configuration {
    public class PluginConfigurationElement : System.Configuration.ConfigurationElement {
        public PluginConfigurationElement() {
        }

        public PluginConfigurationElement(Guid guid) {
            Guid = guid;
        }

        [ConfigurationProperty("Name", IsKey = true, IsRequired = true)]
        public string Name {
            get { return Convert.ToString(this["Name"]); }
            set { this["Name"] = value; }
        }

        [ConfigurationProperty("Guid", IsRequired = true)]
        public Guid Guid {
            get { return (Guid)this["Guid"]; }
            set { this["Guid"] = value; }
        }
    }
}
